'''
微信小程序：贝因美官网和贝因美贝家商城
功能：签到
贝因美官网
抓extra-data中的sid 或者 cookie里的KDTWEAPPSESSIONID= 都可以只要里面的YZ125xxxx
青龙变量名  export bymgw="YZ125xxxx"   多号换行
贝因美贝家商城
抓extra-data中的sid 或者 cookie里的KDTWEAPPSESSIONID= 都可以只要里面的YZ125xxxx
青龙变量名  export bymbjsc="YZ125xxxx"   多号换行
'''


import base64

exec(base64.b64decode('aW1wb3J0IHJlcXVlc3RzICxqc29uICxvcyAsbm90aWZ5ICNsaW5lOjcKT09PME8wMDBPTzAwMDBPTzAgPSJNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTA3LjAuMC4wIFNhZmFyaS81MzcuMzYgTWljcm9NZXNzZW5nZXIvNy4wLjIwLjE3ODEoMHg2NzAwMTQzQikgTmV0VHlwZS9XSUZJIE1pbmlQcm9ncmFtRW52L1dpbmRvd3MgV2luZG93c1dlY2hhdC9XTVBGIFhXRUIvODQ0NyIjbGluZTo4CmRlZiBPT09PMDAwT09PME9PME8wTyAoTzBPT08wT08wT09PT09PT08gLE9PME9PME8wT09PME8wME9PICk6I2xpbmU6OQogICAgTzAwTzAwT08wME9PTzAwT08gPXsnY2hlY2tpbklkJzoiMjg0NTU4NCIsJ2FwcF9pZCc6Ind4OGI2MjVmODJmZDI5ZWRhNyIsJ2tkdF9pZCc6IjQzNzA0NjIxIix9I2xpbmU6MTQKICAgIE8wME9PMDAwMDBPTzAwTzBPID17J1VzZXItQWdlbnQnOk9PTzBPMDAwT08wMDAwT08wICwneHdlYl94aHInOiIxIiwnZXh0cmEtZGF0YSc6J3sic2lkIjoiJytPME9PTzBPTzBPT09PT09PTyArJyJ9JywncmVmZXJlcic6Imh0dHBzOi8vc2VydmljZXdlY2hhdC5jb20vd3g4YjYyNWY4MmZkMjllZGE3LzQ2L3BhZ2UtZnJhbWUuaHRtbCIsJ2FjY2VwdC1sYW5ndWFnZSc6InpoLUNOLHpoO3E9MC45In0jbGluZToyMQogICAgTzBPTzBPT09PTzAwMDBPT08gPXJlcXVlc3RzIC5nZXQgKCJodHRwczovL2g1LnlvdXphbi5jb20vd3NjdW1wL2NoZWNraW4vY2hlY2tpblYyLmpzb24iLHBhcmFtcyA9TzAwTzAwT08wME9PTzAwT08gLGhlYWRlcnMgPU8wME9PMDAwMDBPTzAwTzBPICkjbGluZToyMgogICAgTzBPTzBPT09PTzAwMDBPT08gPWpzb24gLmxvYWRzIChPME9PME9PT09PMDAwME9PTyAudGV4dCApI2xpbmU6MjMKICAgIGlmIE8wT08wT09PT08wMDAwT09PIFsnY29kZSddPT0wIDojbGluZToyNAogICAgICAgIHByaW50IChmIuS7iuaXpeetvuWIsOaIkOWKnyIpI2xpbmU6MjUKICAgICAgICBPME9PME9PT09PMDAwME9PTyA9cmVxdWVzdHMgLmdldCAoZiJodHRwczovL2g1LnlvdXphbi5jb20vd3NjdW1wL2NoZWNraW4vZ2V0X2FjdGl2aXR5X2J5X3l6dWlkX3YyLmpzb24/Y2hlY2tpbklkPTI4NDU1ODQmYXBwX2lkPXd4OGI2MjVmODJmZDI5ZWRhNyZrZHRfaWQ9NDM3MDQ2MjEiLGhlYWRlcnMgPU8wME9PMDAwMDBPTzAwTzBPICkjbGluZToyNgogICAgICAgIE8wT08wT09PT08wMDAwT09PID1qc29uIC5sb2FkcyAoTzBPTzBPT09PTzAwMDBPT08gLnRleHQgKSNsaW5lOjI3CiAgICAgICAgT09PTzBPMDBPTzAwT09PTzAgPU8wT08wT09PT08wMDAwT09PIC5nZXQgKCdkYXRhJyx7fSkjbGluZToyOAogICAgICAgIE9PT08wT09PME9PME8wTzAwID1PT09PME8wME9PMDBPT09PMCAuZ2V0ICgnY29udGludWVzRGF5Jyx7fSkjbGluZToyOQogICAgICAgIHByaW50IChmJ+W3sui/nue7reetvuWIsO+8mntPT09PME9PTzBPTzBPME8wMH0g5aSpJykjbGluZTozMAogICAgICAgIE8wT08wT09PT08wMDAwT09PID1yZXF1ZXN0cyAuZ2V0ICgiaHR0cHM6Ly9oNS55b3V6YW4uY29tL3dzY3VtcC9wb2ludHN0b3JlL2dldEN1c3RvbWVyUG9pbnRzLmpzb24iLGhlYWRlcnMgPU8wME9PMDAwMDBPTzAwTzBPICkjbGluZTozMQogICAgICAgIE8wT08wT09PT08wMDAwT09PID1qc29uIC5sb2FkcyAoTzBPTzBPT09PTzAwMDBPT08gLnRleHQgKSNsaW5lOjMyCiAgICAgICAgT09PTzBPMDBPTzAwT09PTzAgPU8wT08wT09PT08wMDAwT09PIC5nZXQgKCdkYXRhJyx7fSkjbGluZTozMwogICAgICAgIE8wME8wT08wTzAwTzBPTzAwID1PT09PME8wME9PMDBPT09PMCAuZ2V0ICgnY3VycmVudEFtb3VudCcse30pI2xpbmU6MzQKICAgICAgICBwcmludCAoZiflvZPliY3np6/liIbvvJp7TzAwTzBPTzBPMDBPME9PMDB9JykjbGluZTozNQogICAgZWxpZiBPME9PME9PT09PMDAwME9PTyBbJ2NvZGUnXT09MTAwMDAzMDA3MSA6I2xpbmU6MzYKICAgICAgICBwcmludCAoZiflvZPml6Xnrb7liLDlt7LlrozmiJDvvIzor7fli7/ph43lpI3nrb7liLDvvIEnKSNsaW5lOjM3CiAgICAgICAgTzBPTzBPT09PTzAwMDBPT08gPXJlcXVlc3RzIC5nZXQgKGYiaHR0cHM6Ly9oNS55b3V6YW4uY29tL3dzY3VtcC9jaGVja2luL2dldF9hY3Rpdml0eV9ieV95enVpZF92Mi5qc29uP2NoZWNraW5JZD0yODQ1NTg0JmFwcF9pZD13eDhiNjI1ZjgyZmQyOWVkYTcma2R0X2lkPTQzNzA0NjIxIixoZWFkZXJzID1PMDBPTzAwMDAwT08wME8wTyApI2xpbmU6MzgKICAgICAgICBPME9PME9PT09PMDAwME9PTyA9anNvbiAubG9hZHMgKE8wT08wT09PT08wMDAwT09PIC50ZXh0ICkjbGluZTozOQogICAgICAgIE9PT08wTzAwT08wME9PT08wID1PME9PME9PT09PMDAwME9PTyAuZ2V0ICgnZGF0YScse30pI2xpbmU6NDAKICAgICAgICBPT09PME9PTzBPTzBPME8wMCA9T09PTzBPMDBPTzAwT09PTzAgLmdldCAoJ2NvbnRpbnVlc0RheScse30pI2xpbmU6NDEKICAgICAgICBwcmludCAoZiflt7Lov57nu63nrb7liLDvvJp7T09PTzBPT08wT08wTzBPMDB9IOWkqScpI2xpbmU6NDIKICAgICAgICBPME9PME9PT09PMDAwME9PTyA9cmVxdWVzdHMgLmdldCAoImh0dHBzOi8vaDUueW91emFuLmNvbS93c2N1bXAvcG9pbnRzdG9yZS9nZXRDdXN0b21lclBvaW50cy5qc29uIixoZWFkZXJzID1PMDBPTzAwMDAwT08wME8wTyApI2xpbmU6NDMKICAgICAgICBPME9PME9PT09PMDAwME9PTyA9anNvbiAubG9hZHMgKE8wT08wT09PT08wMDAwT09PIC50ZXh0ICkjbGluZTo0NAogICAgICAgIE9PT08wTzAwT08wME9PT08wID1PME9PME9PT09PMDAwME9PTyAuZ2V0ICgnZGF0YScse30pI2xpbmU6NDUKICAgICAgICBPMDBPME9PME8wME8wT08wMCA9T09PTzBPMDBPTzAwT09PTzAgLmdldCAoJ2N1cnJlbnRBbW91bnQnLHt9KSNsaW5lOjQ2CiAgICAgICAgcHJpbnQgKGYn5b2T5YmN56ev5YiG77yae08wME8wT08wTzAwTzBPTzAwfScpI2xpbmU6NDcKICAgIGVsc2UgOiNsaW5lOjQ4CiAgICAgICAgcHJpbnQgKGYnY2vov4fmnJ/kuoYs6K+36YeN5paw5oqT77yBJykjbGluZTo0OQogICAgICAgIG5vdGlmeSAuc2VuZCAoT08wT08wTzBPT08wTzAwT08gLCJcbiBja+i/h+acn+S6hizor7fph43mlrDmipPvvIEiKSNsaW5lOjUwCmRlZiBPME8wMDAwME9PT08wTzBPMCAoTzBPTzAwTzAwMDAwTzAwTzAgLE8wMDBPTzAwMDAw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8wTzBPTyA9anNvbiAubG9hZHMgKE8wMDAwMDAwT08wTzBPME9PIC50ZXh0ICkjbGluZTo2NAogICAgICAgIE8wT09PT08wME8wT09PTzAwID1PMDAwMDAwME9PME8wTzBPTyAuZ2V0ICgnZGF0YScse30pI2xpbmU6NjUKICAgICAgICBPT08wT09PME9PT08wTzAwMCA9TzBPT09PTzAwTzBPT09PMDAgLmdldCAoJ2NvbnRpbnVlc0RheScse30pI2xpbmU6NjYKICAgICAgICBwcmludCAoZiflt7Lov57nu63nrb7liLDvvJp7T09PME9PTzBPT09PME8wMDB9IOWkqScpI2xpbmU6NjcKICAgICAgICBPMDAwMDAwME9PME8wTzBPTyA9cmVxdWVzdHMgLmdldCAoImh0dHBzOi8vaDUueW91emFuLmNvbS93c2N1bXAvcG9pbnRzdG9yZS9nZXRDdXN0b21lclBvaW50cy5qc29uIixoZWFkZXJzID1PT09PMDBPMDAwT09PME8wMCApI2xpbmU6NjgKICAgICAgICBPMDAwMDAwME9PME8wTzBPTyA9anNvbiAubG9hZHMgKE8wMDAwMDAwT08wTzBPME9PIC50ZXh0ICkjbGluZTo2OQogICAgICAgIE8wT09PT08wME8wT09PTzAwID1PMDAwMDAwME9PME8wTzBPTyAuZ2V0ICgnZGF0YScse30pI2xpbmU6NzAKICAgICAgICBPMDAwTzAwMDAwT08wME9PMCA9TzBPT09PTzAwTzBPT09PMDAgLmdldCAoJ2N1cnJlbnRBbW91bnQnLHt9KSNsaW5lOjcxCiAgICAgICAgcHJpbnQgKGYn5Y+v55So6LSd5aOz77yae08wMDBPMDAwMDBPTzAwT08wfScpI2xpbmU6NzIKICAgIGVsaWYgTzAwMDAwMDBPTzBPME8wT08gWydjb2RlJ109PTEwMDAwMzAwNzEgOiNsaW5lOjczCiAgICAgICAgcHJpbnQgKGYn5b2T5pel562+5Yiw5bey5a6M5oiQ77yM6K+35Yu/6YeN5aSN562+5Yiw77yBJykjbGluZTo3NAogICAgICAgIE8wMDAwMDAwT08wTzBPME9PID1yZX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gIHByaW50IChmJ+WPr+eUqOi0neWjs++8mntPMDAwTzAwMDAwT08wME9PMH0nKSNsaW5lOjg0CiAgICBlbHNlIDojbGluZTo4NQogICAgICAgIHByaW50IChmJ2Nr6L+H5pyf5LqGLOivt+mHjeaWsOaKk++8gScpI2xpbmU6ODYKICAgICAgICBub3RpZnkgLnNlbmQgKE8wMDBPTzAwMDAwT09PMDAwICwiXG4gY2vov4fmnJ/kuoYs6K+36YeN5paw5oqT77yBIikjbGluZTo4NwppZiBfX25hbWVfXyA9PSJfX21haW5fXyI6I2xpbmU6ODgKICAgIE8wME9PTzBPME9PT08wTzAwID1vcyAuZW52aXJvbiAuZ2V0ICgnYnltZ3cnKSNsaW5lOjg5CiAgICBpZiBub3QgTzAwT09PME8wT09PTzBPMDAgOiNsaW5lOjkwCiAgICAgICAgcHJpbnQgKCJcbj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0g6LSd5Zug576O5a6Y572R77yM5pyq5aGr5YaZ546v5aKD5Y+Y6YePIGJ5bWd3IOivt+a3u+WKoCA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09IikjbGluZTo5MQogICAgZWxzZSA6I2xpbmU6OTIKICAgICAgICBPTzBPME9PMDAwTzAwT09PTyA9TzAwT09PME8wT09PTzBPMDAgLnNwbGl0ICgnXG4nKSNsaW5lOjkzCiAgICAgICAgZm9yIE8wMDAwMDAwT09PT08wTzAwICxPTzBPME9PMDBPT08wT09PTyBpbiBlbnVtZXJhdGUgKE9PME8wT08wMDBPMDBPT09PICxzdGFydCA9MSApOiNsaW5lOjk0CiAgICAgICAgICAgIE9PTzAwTzBPME8wT09PME8wID1PTzBPME9PMDBPT08wT09PTyAuc3BsaXQgKCcrJykjbGluZTo5NQogICAgICAgICAgICBPME9PTzBPTzAwTzBPME8wMCA9T09PMDBPME8wTzBPT08wTzAgWzAgXS5zdHJpcCAoKSNsaW5lOjk2CiAgICAgICAgICAgIE9PT09PTzBPT08wT08wME9PID1PT08wME8wTzBPME9PTzBPMCBbMSBdLnN0cmlwICgpaWYgbGVuIChPT08wME8wTzBPME9PTzBPMCApPjEgZWxzZSBmIui0neWboOe+juWumOe9ke+8mui0puWPt3tPMDAwMDAwME9PT09PME8wMH0iI2xpbmU6OTcKICAgICAgICAgICAgcHJpbnQgKGYiPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSDotJ3lm6Dnvo7lrpjnvZHvvIzlvIDlp4vmiafooYznrKwge08wMDAwMDAwT09PT08wTzAwfSDkuKrotKblj7fku7vliqEgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSIpI2xpbmU6OTgKICAgICAgICAgICAgT09PTzAwME9PTzBPTzBPME8gKE8wT09PME9PMDBPME8wTzAwICxPT09PT08wT09PME9PMDBPTyApI2xpbmU6OTkKICAgIE8wME9PTzBPME9PT08wTzAwID1vcyAuZW52aXJvbiAuZ2V0ICgnYnltYmpzYycpI2xpbmU6MTAwCiAgICBpZiBub3QgTzAwT09PME8wT09PTzBPMDAgOiNsaW5lOjEwMQogICAgICAgIHByaW50ICgiXG49PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09IOi0neWboOe+jui0neWutuWVhuWfju+8jOacquWhq+WGmeeOr+Wig+WPmOmHjyBieW1ianNjIOivt+a3u+WKoCA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09IikjbGluZToxMDIKICAgIGVsc2UgOiNsaW5lOjEwMwogICAgICAgIE9PME8wT08wMDBPMDBPT09PID1PMDBPT08wTzBPT09PME8wMCAuc3BsaXQgKCdcbicpI2xpbmU6MTA0CiAgICAgICAgZm9yIE8wMDAwMDAwT09PT08wTzAwICxPTzBPME9PMDBPT08wT09PTyBpbiBlbnVtZXJhdGUgKE9PME8wT08wMDBPMDBPT09PICxzdGFydCA9MSApOiNsaW5lOjEwNQogICAgICAgICAgICBPT08wME8wTzBPME9PTzBPMCA9T08wTzBPTzAwT09PME9PT08gLnNwbGl0ICgnKycpI2xpbmU6MTA2CiAgICAgICAgICAgIE8wT09PME9PMDBPME8wTzAwID1PT08wME8wTzBPME9PTzBPMCBbMCBdLnN0cmlwICgpI2xpbmU6MTA3CiAgICAgICAgICAgIE9PT09PTzBPT08wT08wME9PID1PT08wME8wTzBPME9PTzBPMCBbMSBdLnN0cmlwICgpaWYgbGVuIChPT08wME8wTzBPME9PTzBPMCApPjEgZWxzZSBmIui0neWboOe+jui0neWutuWVhuWfju+8mui0puWPt3tPMDAwMDAwME9PT09PME8wMH0iI2xpbmU6MTA4CiAgICAgICAgICAgIHByaW50IChmIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0g6LSd5Zug576O6LSd5a625ZWG5Z+O77yM5byA5aeL5omn6KGM56ysIHtPMDAwMDAwME9PT09PME8wMH0g5Liq6LSm5Y+35Lu75YqhID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0iKSNsaW5lOjEwOQogICAgICAgICAgICBPME8wMDAwME9PT08wTzBPMCAoTzBPT08wT08wME8wTzBPMDAgLE9PT09PTzBPT08wT08wME9PICk='))